﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JCFrameWork.Web.Cacheing
{
    public interface ICacheProvider
    {
        void Set(string key, object value);

        void Set(string key, object value, DateTime expiration);

        void Remove(string key);

        bool Contains(string key);

        int Count
        {
            get;
        }

        void Flush();

        object GetData(string key);

        Dictionary<string, object> GetDatas(string[] keys);

        object[] GetDataArray(string[] keys);

        bool GetData<T>(string key, out T data);
    }
}
